import service from '../server'

// 机主首页
export const ownerSpaceApi = () => {
    return service.get('/api/v1/provider/index')
}

// 提现
export const providerWithdraw = (data) => {
    return service.post('/api/v1/provider/withdraw', data)
}

// 显卡出租率表格
export const machineSaleApi = (data) => {
    return service.get('/api/v1/provider/index-machine-sale-list', data)
}

// 机器稳定性
export const machineStableApi = (data) => {
    return service.get('/api/v1/provider/index-machine-stable-list', data)
}

// 收入
export const incomeApi = (data) => {
    return service.get('/api/v1/provider/index-money-income-list', data)
}

// 积分列表
export const getScorelistApi = () => {
    return service.get('/api/v1/provider/scorelist')
}

// 机主政策
export const getProviderPolicyApi = (data) => {
    return service.get('/api/v1/provider/policy', data)
}

// GPU下拉
export const getGpuListApi = (data) => {
    return service.get('/api/v1/provider/gpu-name-list', data)
}
